package org.gitman.agentplatform.ui.actions;

import java.awt.event.ActionEvent;

import org.gitman.agentplatform.model.Graph;

public class NewSimulationAction extends UIAction{

	public NewSimulationAction() {
		super("New Simulation");
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		Graph graph = platformManager.getSimulation().getGraph();
		platformManager.newSimulation();
		platformManager.getSimulation().setGraph(graph);
		platformManager.getView().newSimulation();
	}
}
